<?php
class Sabai_Template_Default_Helper_XiggRecentVotes extends Sabai_Template_Default_Helper
{
    function execute($limit = 10)
    {
        $html = array();
        $model =& $this->_locator->getService('Model');
        $vote_r =& $model->getRepository('Vote');
        $votes =& $vote_r->fetchAll($limit, 0, 'vote_created', 'DESC');
        $votes->rewind();
        return $votes;
    }
}